import productData from "./productData";

export const initProductParams = () => {
  productData.tParam.search = "";
  productData.tParam.categoryId = "";
  productData.tParam.categoryLevel = null;
  productData.tParam.state = null;
  productData.tParam.startTime = null;
  productData.tParam.endTime = null;
  productData.tParam.selectedCatIds.splice(0);
  productData.tParam.selectedDate = null;
  productData.tData.selectedList.splice(0);
  productData.tData.list.splice(0);
}

export const initProductPage = () => {
  productData.tPage.total = 0;
  productData.tPage.pageNum = 1;
  productData.tPage.pageSize = 40;
  productData.tPage.options.splice(0);
  productData.tPage.options.push(...[40, 60, 80, 120]);
}
